#
#
# name = input("name:")
# age = int(input("age:"))
# job = input("job:")
# salary = input("salary:")
# if salary.isdigit():
#     salary=int(salary)
# else:
#     print("must  input digit")
#  #   exit()
#
#
#
# msg = '''
# --------info of --------
# Name: %s
# Age: %d
# Job :%s
# Salary:%f
# You will be retired in %s years
# ----------end-----------
# ''' % (name,age,job,salary, 65-age)
#
# print(msg)


#
#
#
# t = [1,2,3,4,6,5,4,4,3,3,2,21,2,3]
#
# a= t.count(4) #计算元素出现次数
# print(a)
#
# extend
# a = [1,2,3]
# b= [4,5,6]
# a.extend(b)
# print(a)
# print(b)
#
# #index  根据元素内容，查找位置
# print(a.index(6))
# t.sort()
# t.reverse()
# print (t)
# t.sort(reverse=True)
#
# a =['wuzong','lili','ligang','zhangxian','sanfeng','huashao','ligang','wanger']
#
# first_lg_index = a.index("ligang")
# print("first_lg_index",first_lg_index)
# little_list = a[first_lg_index +1:]
#
# second_lg_index = little_list.index("ligang")
# print("second_lg_index",second_lg_index)
#
#
# second_lg_index_in_big_list = first_lg_index +second_lg_index +1
#
# print("second_lg_index_in_big_list",second_lg_index_in_big_list)
# print("second_lg:",a[second_lg_index_in_big_list])
#
#
# # reverse 倒叙
# a.reverse()
# print(a)
#
#
#
# names_class1=['张三','李四','王五','赵六',[1,2,3]]
#
# names_class1_copy=names_class1.copy()
#
# print(names_class1_copy)
#
#
# print(id(names_class1_copy))
# print(id(names_class1))


a = [[1,2],3,4]
b = a[:]

print(a)
print(b)
print(a,b)
print(id(a))
print(id(b))